<?php
/**
 * 源码
 * Created by PhpStorm.
 * User: zhan
 * Date: 2018/11/5  16:28
 */
namespace app\api\controller;
class Code extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'only'=>''
//            'except' => 'except'
        ],
    ];

    /**
     *   列表
     */
    public function codeList(){
        $codeList =  (new \app\api\logic\Code())->codeList();
        return $this->ajaxReturn($codeList);
    }

    /*
    *
    */
    public function banner()
    {
        $banner =  (new \app\api\logic\Index())->banner();
        return $this->ajaxReturn($banner);
    }
}